<?php
$variable=$_GET["nameTour"];

	include "Global.php";
	//Conexion a mysql y a la base de datos
	$connection = DBConnect();

$query="SELECT * FROM tours where Name==$variable";
	$resultado = mysql_query($query) or die ('\n error en query ' . mysql_error());
	$num_rows = mysql_num_rows($resultado);
	if($num_rows > 0){
		echo "Mal";
		$_POST["nameTour"];
	}else{
		echo "Bien";
		$_POST["nameTour"];
	}

	DBCLose($connection);
?>
